Implemented module and handles registry
Implemented simple id generator for subscription
Code refactoring