add gitignore
move lib/index.js to format.js
add minified version