docs now correctly detect mobile devices, fixed a couple related bugs