updated, using readfile now, remove obsolete os.remove commands