DENSITY FUNCTIONAL THEORY OF MOLECULAR FRAGMENTS