Added rename feature to enumfiles and fixed up code/docs.