Moved place_files to io and some other fixes.