Fixed error handling
Cleaned up docs & added simple doxygen support