Enhancement to detect Windows phone and tablet.

I received a suggestion by email from @mrcycling. He wanted to be able to distinguish a Windows phone from a Windows 8 tablet.
For that, I did a few changes.

Hope you will like.

Thanks,