added some more wave related stuff

lots of minor changes to code related to spawning and others.