Merge pull request #359 from simong/paris2013-previews-documentviewer

Better PDF parsing + documentviewer compliancy
Lower-casing 'IO' in requires statement