basic option handling
Merge pull request #16 from yetanotherhacker/handleoptions

basic option handling