type attribute
add type to json object
better message
to string
clean up gens
ignore file