Remove closing PHP tag

This commit removes all closing PHP tags [http://us.php.net/basic-syntax.instruction-separation] and add a couple of missing semicolons