Support recording
Fix error wrong time
update code (memory leaks, remove some codes.. )
update record