Fixing issue with class annotations.

Fixed a recently introduced bug with detecting comments
Made sure open braces after classes are aligned correctly
Fixed an issue with throws statements on the same line as open braces