Cleaned up editor uglies
Smarter implementation
Started freeing allocated memory
Removed illegal free
Writing unittests
Handle newlines
Test an expression with line breaks