Fixed some bugs involving parentheses, made the GUI print stack trace for errors in stderr (via Logger)