code cleanup. parser now aborts if it sees tabs and gui updated