fixed statements missing semicolons

added declaration as a statement (with a semicolon after it) and added
mandatory semicolons to the end of return statements.