Added return_sortdirs, return_sortfiles, directory_changed, and
directory_in_cache.

Updated gitignore to ignore scandir, and .ds_store