Refactored configs from text files to classes