removes unused code
using Math.radians instead of custom
adds bunch of logging