Added model directory.
added promise module.
use promises.
fix capitalization.
use promises.