added forgotten nonce-check, use timecheck(timeFresh) and fixed some typos