Used the more standard memset function for dictionary zeroing
Reorganized global variables