move away from references; they seem to screw up propagation
use a single-depth element for flashes
convert from strings to constants
Merge pull request #24 from pmjones/develop-2

Move away from references