To answer your main question, - how to prevent gaining back weight I highly recommend the book "Fit for life".
It covers the subject of Natural Hygiene which includes the cycle of the body, food combining and what foods to have during the different parts of the day.
This subject has been virtually unknown, I believe since the 1800's, and is the real secret on staying healthy, which keeps the weight normal.