Updated decoder.  Extended document set so as to support multiple grids.