convert to unsigned int
change readme to reflect api change