move editing to inside doc, some bugs
in which the remaining bugs were fixed
in which ramda is added and `types` becomes collections instead of objects
rename docs to cards, rename store to cardStore