Move action separated to a single file

and rotation retyped to int
Some minor cosmetic changes