fixed bug with updated rating values
cleanup
added warnings if maxsize is wrong