Added enumeration function (enum).
Undone returning strings as unicode: this will encumber port to linux.