add license file.
add input method in Factory and README.
add $locale and $dir as argument when building Rules object.
remove unused class, String.
add test for filters.