Fix wrong calculation of rotation angle
Add copyright information