add simple enum using code array.
add EnumArray for enums for array list.
fix comments and error messages.