Add traits.h
Add ident and move traits to traits.h