fix event example, S.types now
ioctl in event can now be cleaned up
change read default if buf defined to use length of buf
do not need to specify read length in event example