update rule definition api & add rules
add npm ignore
add test files
update default config
update readme