better checks for pattern validity
isValid should only return bool, not throw exceptions
add docblocks
update README