Doxygen integration, fixed memory leaks and internal interface cleanup.