added test on exception in idle.
 implemented macros for 'reading' operations.
 macro-based writing/reading/  for selectors