Testing, refactoring, bug fixes

- Support for opening whitespace
- Fix bug with blank lines
Test for Chart#add_line