Added library build and more doxygen documentation.