Pid fixed
Partially converted to new modular logger
More new logger
Test ready version