changed button mapping, script location
tabs to spaces, sendCommand added
remove transient files
moved button action logic to menu objects