simple changes
fix mem bugs and del some useless files