code reformatted
require mobiledetect/mobiledetectlib
refactored