Changed tabs to spaces
Added test file, minor changes to rotate