refactored the code. commented out the phenolist. removed the deprecated code.