tweaking during some test. added some comments and documentation.
added doxyfile