added function documentation 

IT NEEDS PARAM notes for code in SendErr.