Enumerations are welcome

Added enum classes to simplify generation process.