Move target calculation to a separate class
Improved import stability
Fixed test cases
Added node class and changed to logging system