Changing coordinate system and cleaning up paths
Removing unused variables