annotated mongoose implementation and added update and removal methods