Updated package and added HEAD state for documents