handle duplicate class names

In the event of duplicate impact function class names raise an exception. This solves issue #195.