delete new'd object, and get rid of c isms
rename to hpp
extend constness
use istringstream to get lines from a buffer instead of doing it ourself