fix errors and add routes for comments