Fixed the warnings that were being suppressed. Changed all global variable declarations to private since they all had default visibility.