fix PROGMEM datatype declarations and function signatures by adding 'const' keyword