source code for the G4STORK project