display message only in debug mode
fixed wave speed calculation, cleaned up tests