update comments & pretify code
add minified version