organized logic in single function
added an ordering of the files found in the dependency map (relying on the mutil.clj implementation of ordergraph)