Add formatter tests.
Update README.
Use idiomatic style.