Changed the style of the code to allow for better readability.
Basically, I put spaces between operators and numbers, moved variable declarations to the top of functions, and spaced out blocks of code.
Nothing major.

Signed-off-by: Desayuda <kylet9999@gmail.com>