Removed mongoose-types module and made some codestyle fixes