implemented 'fetch'
changed name from document to hierdoc