Added auto_adjust_unit and get_emis
Added codeutils.py