set more standard code and cleaned the code a bit up. possible to use an arbitrary number of options now