refactored IPC stuff into separate module
Updated docs, minor bugfixes