Added Mongo Configuration passing mechnism for better support
Changed File arguments to InputStream arguments for better support