Better attribute names
Move document-parsing API into a Document class