add swp to gitignore
Refactor reader and write tests
Make json more friendly to write
add json_resume to require