Rational Control Of Structure, Composition, And Function In Metal-Organic Frameworks