First draft of a bank generator that writes out a root file of patterns