modified manual and added diagrams