Corrected numerous errors