cleaning mongo_formatter code

added doc strings and removed excess notes