Fix semicolon and function examples