update doc, remove print function and update << operator
fix indent
add doxigen and clear code