Add API doc for mktree, requireConfig
(#2) Add specs for requireConfig, improve mktree spec