Changing function name from GetType() to TypeName() to be more in line
with go naming standards