Better comments in move/item AI. Misc nonsense.

Merges #263.