Added mem card fns, started tying the whole thing together