Little refactoring.
Add namespace for classes.
Add documentation.