separate rating component into its own dart file. misc code clean up.
separate rating component into its own dart file. misc code clean up.