Also, about the nighttime leg cramps: they are probably not related to diet. My husband was suffering badly from those, and we experimented with all kinds of diet changes, to no avail. In the end, we started doing calf stretches before going to bed every evening, and he hasn't had a leg cramp since. We stretch each leg for 30 seconds, and repeat for a total of four rounds (i.e., each calf gets stretched for a total of 2 minutes). The stretch I'm referring to is this one:
myhealth.alberta.ca
We do the stretch with the back leg straight; we don't bother with the version of the stretch where the back leg is bent. Also, we just do the stretches once a day. The important thing is to do it every day; otherwise, the cramps will come back. I sometimes get foot cramps, and massaging the arches of my feet with my fingers helps with those.