Better documentation

Doxygen-style commenting