modified inline functions defined in dipydoc.h so that parameters are passed by reference and not by value