Add comments.
Added comments to all code files. The comments are doxygen compatible to
generate automated documentation with doxygen later.