Added check for running.
Fixed token encoding.
Fixed crash when setting expiry date.
Added sound.
Added option to read certificate from file.