Add loading of classes, fixes #104