added unlink call and small edits to bonnie