Set up a sound wave problem to move toward testing grav1d

Also, in this commit the grav1d module is given quite a bit more
control from Lua, rather than being just a single function.
Fix a bug in the parsing scripts, setting double to int
Start generalizing grav1d