Added check on iwinfo in model()
Fixed to_dict() and to_json(), added control to iwconfig parsing in model()