Documented enums and updated enums and functions.