removed console.log
fixed input options that were applied as globals
Made APIS promised based (keeping backwards compatibility).
0.4.0