added api doc for phpError widget, close #50