simulation functionality added with --sim flag and fixed bad-renaming of files with naughty characters.