Remove syfs on unload
Correctly free irq
General tidy up of file and restructure of attribute definitions