Cleanup

Replace tabs, remove trailing spaces, keep coding style consistent
Add clockwise option
update demo to show clockwise