Grating, ailogger

Added sync square support to grating class.
Added comment to ailogger.