added remote MongoDB example, JavaDocs