Deleted unneeded files, and fixed bugs.