Added the ability to add comments to tickets, plus some tidying up.