started work on the rating work and fixed a number of runtime bugs.