Cleaned up and commented pluginRepository.