added main
make a better command line app