Update README with custom adapter documentation.

* add documentation on how to write custom adapters.
* restructuring README.