worked on globals

moved global things (origin, begin() funcion) to its own file.
NOT WORKING YET!