updated Registraction.h, moving misc functions to misc.h