Added rating calculation and fixed some styling