Added some doctrings to wavegen.py