Fixed magik system numbering bug

Magic system numbering wrong in class files... now fixed.
Fixed one of the debug routine errors.