Added switch of coordinates.
Fixed axis orientation.
Removed all the useless coordinate transformations.