changed spacing, added brackets

1)I double checked c standards, spacing can be anywhere between 2 and 8, however research has shown four spaces is the optimum indent for readability and maintainability so I'll go ahead and do that. This will also help ensure lines are less than 76 characters.

2) From what I've read it's bad practice in c to omit curly braces from one line code so I added them in.

3) Only thing I'm not sure about is if it's okay to do the braces on the functions differently than the conditional statements since you're supposed to be consistent with the way you do all your braces.