added test cases to test against selected digit set and rage
add spec for pattern function
update the doc a bit
add more tests for pattern functions according to updated spec
Release 0.0.9