Gratings, ailogger

Gratings: Updated sync square to increase performance.
ailogger: Added "removeNone" function to make conversion to .mat files
easier.