fixed delete note stuff
cleaned up old files