get and post rating done

cleaned up code to match coding standards
Added comments, should be just about done