Added cpplint, cppcheck and Doxygen rules, more comments, and the public Text API