initial commit on git, code originially from sourceforge