Fix reported StringIndexOutOfBoundsException
Only scan for new networks if actually connected to a network, this resolves some double connect issues
Remove left over debug message
Cleaned up some code
Version increase