renamed total_points column to earned_points column, refactored some calculation-based methods in ktb.rb