Update documentation. Add theory section.
[skip ci]