Error Handling and some more bug fixing
Add doxygen doc to gh-pages branch