Started organizing main netgen source file