Fixed some reminder model bugs and formatted some codes