Fixed #1 by writing a method to handle values with newlines.
Made control characters and then some as constants.