added semi-colons to end of lines where missing