In addition to the other suggested references, try this:
http://www.cactusumpires.com/
Click on the link for downloading a presentation of line up card management - even though that seems off-topic, the last half of that presentation is a pretty good discussion of the flex rule.