Added semi-colons to end of lines where missing.
Added couple of $0 anchors where missing.