update plot function and man files