Parenthesis check
Just one left to decide (search for 'attention needed')
Also fixes newlines incorrectly removed from end of files