parse arguments

just threw together a quick cpp program that takes arguements.