Moved wgchunk class from wavegen to its own files