Added rating persistence to file