bug fix: size_t n in ata_read() ata_write()
moving chkout to lmain()
using IS_VALID()
add support for default signals