added Jans code for watervave modeling