use short vals instead of int where applicable
remove some unused utility functions
instructions for using device simulation scripts