Removed spurious blank line from top, removed dupe closing braces under header, removed link printing (yuck), upcase the billtype.