add enums and documentation on Result class