v1.0

fixed some minor bugs with for loops and added input control