modularize sample loading code
modularize sample loading code

origingod/lightning,deardooley/lightning,karissa/lightning,lightning-viz/lightning,karissa/lightning,lightning-viz/lightning,cournape/lightning,cournape/lightning,origingod/lightning,deardooley/lightning