Changed format of lc from document to array

lc is now an array of subdocuments, each with keys
"ln" and "ec", for easier data parsing.