Theme switching component added, some minor refinements to other scripts.