- more apropriate type cast
- better name for encoder reference
- motor reduction removed from encoder ref
added feedback control enabling to main for debug purposes
- phase state renamed to pole state
- idiotic logic in nextPolePos replaced with the correct one, untested
- better stop condition