Lots of cleaning up!

- Making sure that variables are more easier to read.
- Replaced int functions that return nothing with voids.
- Proper function declarations in header files.