split archetype stuff from object.h to a new archetype.h file
convert archetypes to C++ objects (still in progress)