Multi level documentation

Adapting to the new structure added in #313.