Initial version

this is the first version of the code. It is currently untested (not sure if I can longinfo the angles, not sure if the angles are correct)