working update, still working on output and adding nsmutabledictionary