fixes #4 - extraneous newlines in serializations
fixes #5 -- inconsistent naming