Fixed an issue for Touchwiz on the S3 (and maybe other devices) with the latest updates where isGsm is not the length - 1 spot on the data array. Now it looks at the last spot and counts backwards until it finds it for certain.

Also added debug info to the screen so no more logcats when developing (mainly for when I need someone else testing stuff for me to save them time).