[docs] fix formatting and other errors in loss & solver