added download functionality (sort of. doesn't work in all browsers yet.), fixed some bugs w/ search