added runheap
fixed close file bug and added performance evaluation test