Class/classname consistency

Renamed all occurrences of `classname` into `class` for a consistency sake.

Depends on #421