added control structures to add different options

i was programming blind... as in no enviroment to run the commands to test the, will test when i get home