Refactored classes, made ID3 functions shorter