Better display of errors in editor, added code for finding function names and lines