Add API doc comments, add doc, prepare v1.0