added some unit tests for Path angle calculation, added modes in Processor, minor refactoring