fixed some of the code

gave datatypes to variables that I was unsure about earlier