Improving and validating the WEC-Sim wave energy converter modeling code