Adjust settings, add codestyle.
Fix findbugs warnings.

* Make constants static.
* Initialize Random instance only once.
* Use explicit charset for Input/OutputStream.
Add WriteReadTest.
Add usage to README.