modified regular expression handling to catch argument errors
updated readme