added debug*.txt
fixed possible double-deleting on last object deletion
changed Makefile from debug to do optimization