Add missing semicolons and parentheses

I know they are optional. But there is no consistency in code examples. Some of them have semicolons and parentheses in constructors but some of them don't.