Fixed some bugs. Handling of spaces and newlines.
Newlines and spaces properly handled.
Refactored
Fixed but with handling of nils at EOF
Diamonds!