Added a function that generates tuplelist for a doc

Added a function that generates the tuple-list for the provided document