using require-module and improving API doc