Timings corrected
New waves

plus store arrays in flash instead of ram