Add callback to openStudy, complete the parsing api