Formatted the entire codebase using NetBeans

I've formatted the entire codebase using NetBeans
because the code didn't follow any code standards.
This improved the readability of the code a little
bit.