Rotation experiments.
Changed rotation logic.
Fixed some bugs in rotation code.
New rotation seems to work...
Removed aps file.
Merge branch 'rotation'

Conflicts:
	Molecules/Molecules.aps
Removed aps file.
Removed some unused code.
Fix some bugs in state logic.