Added byWords options to split the pattern to input per word instead of input per char. Added basic support for iOS devces