test fixed
errors messages was added
added javadoc for regexps