beginning to separate driver from implementation
switched from C-strings to <string>; working on parsing