Can now set mode and fan mode; updated buttons; added default script for index.