refactored dir structure and plugin/module structure
small refactor added singletons to classes and priv const