Update documentation.
Code style.
Add support for base layers.