made some minor corrections and adjustments