added paragraph id to comments model and adjusted functions for it