Changed utils from a package into one module.
Moved const package into one module. Added file_type and valid_file_type functions to utils.