WD 1145+017: optical activity during 2016-2017 and limits on the X-ray flux