added more api doc
added data stroke test