a couple minor issues fixed + tests for preserveBlankLines option