refactor reader/writer
update README.md and build.sh