refactoring the homepage #autotune to eliminate inline styles

Also some general tidying up