Added fsm example to lualib index and slightly modified fsm.lua doco
Changed all instances of 'dwi' to 'device'. I tried to be cautious about this and check each file, but I still may have made a mistake.
LDoc adjustment