Riecoin share criteria updated

also some bugfixes.