Clean the mess

Fix smooth rotations when changing directions
Remove dead code
Ignore content of output folders