Fix known bugs. Remove unneeded files.