Clean up Scala CodeSheet output

- no more garbage on a line with only a comment
- no more empty parenthesis on a line with a ClassDef