Adding "process_environment" and minor changes such as "codify" and some other tests