added hash files to backup
fixed bugs and cleaned up a bit