use vector<char> to handle data
large modification.
try to add color support, but not work.
crash at exit now
Fix color stream not work
Fix the crash bug when exit
Add some comments