cleaning mongo_formatter code

added doc strings and removed notes