Add more variables for ease of debugging

fixed some issues with getting the total percentage.
add few variables such as totalPoints, maxPoints, and currentPercentage
to debug the code
made default total max points to 100 for ease of debugging