Added method call and fixed syntax errors

Other collaborators on Github can create pull requests to submit patches or features to your projects.