added null check for input pattern
adjusted readme for retrieving the dependency due to the upload to maven central