Update example.
Added doxygen documentation.
Updated file formatting.