Refactor communicator (better readability, more consistent logging, etc). Add ipc parts of commands necessary for printing.