separating old code for later reference; adding defaults for specific configs; added mongoose_model.