remove typeof 'undefined' checks
add docs
use config file for the docs
docs
update license