index.js: better backticks for variables
lib/api: fully documented
index.js: better formatting for code