Updated package and added HEAD state for documents
Merge pull request #36 from ht2/master

Updated package and added HEAD state for documents