Added documentation generation via Doxygen.
Fixed bug in creating the version number.