Add main method.
Updated .gitignore