Partial implementation of the new option save stack mechanism. Added notes for what needs to be done to speed up get_matching_files.