Added code to load data and added a scratchpad file