Added main function
Merge pull request #1 from tp9/master

Added main function