Fixed some bad validity checks

Removed checks like this:
if(!(0 <= session < modio_wSessions))
As I wasn't thinking straight when I wrote them!

Added and improved lots of debug prints.