Applied default formatting rules from Visual Studio Code (i.e. removed white spaces, separates // and text, fixed spacing of functions and more formatting)
Corrected typos
Rearranged code as C++ standard. Functions should be defined before being called
Functional the same but here is a lot of tiny changes:
Fixes:
Formatting: