Global hidden variables made static

This way, they cannot be altered outside of the .cpp they are in.