Fix for typos in strcmp checks and more debugs

modio_read now returns the amount of cells read.

modio_close_session_write/read kills the finalisation timer.