Refactor and add setContent() method to replace setContents() (to be deprecated)
$device now added to template variables
eg in smarty show section just for mobile with {if ($device->isMobile())} this only appears to mobile devices {/if}