fixed replica_set creation, attributes and some error handling
Merge pull request #1 from TonyCerrit/prasincs_fixes

fixed replica_set creation, attributes and some error handling
removed debug statements
Merge pull request #2 from TonyCerrit/prasincs_fixes

removed pry breakpoints
merging prasannas fixes