Updating the theme comments.

Updating the comments in functions.php to better document the
functions. Also added the mobile detect script.