Development phase 1

Partially supported the messaging from libraries.
Various bugfixes