Fixes the scope of various variables throughout the whole project, as well as their modifiers if necessary.