move the setup.py file to the top directory

also, make it a setup file for the whole package
remove unused functions in rotations.py

add some comments