added fragstats
changed references from cfree to free