Added method to get documents
Added logger