More robust document parsing using nokogiri's XML parser instead of HTTP
Increased error checking against empty parsed strings to avoid errors
Converting to markdown still poses issues.