created device scripts
modified demos to be device independent.