Added comment functionality and frontend code