add main function
Merge pull request #1 from RedBeanPieLarry/master

add main function