fixed some weighted grades errors, integrated it with front end
fixed some weighted grades errors, integrated it with front end