further refractor code to simplify the final output of CSS, also added .high .low classes rule which was missed in the first commit