added some wave creation code

added script to define a wave. the script does not yet work.