some optimizations, toDeg conversion and THREE vectors added