refactory: use struct to wrap common variables
fixing readme example
change createTicket to requestTicket
Merge pull request #1 from andrerocker/master

temaki cannibal :p