Missing semicolons

and added comments