fixed ticket period calculations
added some documentation
new getter for UID