some minor corrections
exercise 5 done
some minor fixes and formatting