Project internals

* location for internal functions and helpers is ready.
* tests directory structure now mimics the project directory structure.