Modified errorShade and added modified plot function