Fixed a grammar issue where the first character is a emtpy line.
Updated the unit tests to refactor them to be simplier, and added new notes tests.
Added tests for whitespace around the document.