create rst converter and fix some bugs