changes in plotting functions and documentation