I am not entirely surprised at the symptoms you have described Larry, but it really didn't help much by working while you were fasting.
Fasting is a physiological rest, and requires physical and mental/emotional rest as well.
What you have described is essentially how not to conduct a water-only-fast.