Fixes for auth issues related to reconnect on replicaset, cleanup of comments in code