Fixed issue where pygame would hang on quit, because of something happening in pygame.init().

Added comments to clarify some of the pygame code.