Update to e) + fixes newlines in input (when looking for 'q')