Deleted unnecessary files. Fixed bugs.