changed class in templates to typename
Optimized grade_system
Some little style improvements