Small compiler errors and started to add doxygen comments.