fixed motor starting phase
some code optimizations enabled