Adapted to Magnum changes, fixed example documentation.