Structure Alteration

I added space between brackets and parameter, also fixed the structure of if statements