cleaned up module interfaces;
cmake variable to enable/disable building of examples (enabled by default)