Fixing class names anding formula for total, #312.

Signed-off-by: Zane M. Kolnik <zanematthew@gmail.com>