added start of wave code, removed some files