inital getopt commit.
Merge pull request #12 from vashman/getopt

inital getopt commit.