Changed 2 calls to panic to log.Fatalln and added a usage comment in the Decode function.