Place files function

I fixed a couple of bugs in place_files.  I also moved this function to utils since it seemed more appropriate there.