added transform function parsing, and fixed parser bug with newlines