fixed minor bugs in the commit
ping: view spec for documents
documents