Added cross-platform usability with a 'cls' vs 'clear' selector. Enhanced the calc_avg function for more accuracy