code cleanup
updated ndoc config
added `preloaded` option