Ticket edit and creation added,  and some minor fixes