style: minor formatting and capitalisation changes

Various changes - adding semicolons, compilation fixes, capitalisation/standards changes.