fixed a couple of bugs (include and a class initialisation)