Added support for embedded documents in mongo
Fixed util functions for mongo; added model copy
Fixed documentation generator crash