Gwsim: a code to simulate gravitational waves propagating in a potential well. Issue 4 (23rd July 2021)