added dg_mkwave demo and fixed dg_mkwave so scalar and empty freq specs work