add memory collector
add memory collector and change the structure
delete redundant files