found some errors, implemented tostring
error, calculateAngle is wrong