complete tree compress
rm comment code
modify profile
add flag managing processing
opt State struct