changes to parsing -- shouldn't affect any currently working code, but setting
the stage for substantial parser improvements.  Also switched to use a logger
for ouput.