added getopt to handle command line options.  making things a little nicer in terms of iterating through the options themselves.  I would like to make it such that a user from another church could take this code a do something useful with it.  Additionally, it would be nice to have the ability to use this on a web server.