Changed malloc and memset 0 to calloc, deleted unused variable "token"

Please see http://stackoverflow.com/questions/2688466/why-mallocmemset-slower-than-calloc