plotting and documentation