actually use a buffer and the concept of a prefix
code cleanup - using more meaningful var names
code cleanup
adding automake and doxygen files