Updated documentation

Most code documentation is ready in doxygen format.