fix many warnings and markup errors
Merge pull request #321 from knzm/patch-2

fix many warnings and markup errors