adapted to new libraries, added examples for new documentation features