Add documentation and readme for the core implementation.
Add documentation and readme for the core implementation.