Added more tests, fixed docs

. fixed apidoc
. registered test in util.ini
. added test methods for all writing methods, comment handling,
  multi-section writes