small rating update & some assertions

added ( a bit ) design by contract