Graph structure created. Also as createGraph function initializing graph

Small renaming in norma2
inline functions moved to header