update README, and fix a bug in the lib that prevented parameters at the beginning of the string to be parsed