Refactoring and documentation

* subdirs and files renamed
* doxygen documentation