clean comments, namespaces and coding styles
update doc