fix readText bug
add spec
revise test cases
fix path bug
performance optimize