Fixed memory leak. Added more localization. Ground work for changing cell colours.