added errors to the bars and star ratings to the code