fixed a number of small, simple mistakes

after testing with validation tools