calculating percentages correctly now
updating comment headers to use variables