javadoc for entities added
isActivated fixed now will return false 
genPurchaseId changed to hash the current time to ensure better uniqueness