Cleanup

Replace tabs, remove trailing spaces, keep coding style consistent
Add clockwise option