added populate option

Hi,

Added a populate option when adding resources to fetch referenced documents.