Renamed machine module to machines.
Added as_enum method.
Fixed enum value tanslator.