Modified little error in plot functions, changed functions for error_functions