Switch to having preambles as attributes
Read gadget_file from directory
Move combining of defaultparms into main function