Fix textcorpus metadata

Fixes TextCorpus not having proper metadata info. I've defaulted to returning the line number than a document appears on.