bug fixes in rotate
fixed gitignore