Fix error with # in strings
Fix issue with newlines and open array
Closes #1