Added shuffle button, better duplicate removal, and tracking last-used
directory.