added enum code snippet for the style that i like
corrected the typedef enum to include the typedef