More agent-program cleanup, and incorporated fix from AIMA3e pseudocode.
More agent-program cleanup, and incorporated fix from AIMA3e pseudocode.

hobson/aima,ttalviste/aima,hobson/aima,ttalviste/aima,hobson/aima