First Principles Studies of Structural, Molecular Adsorption, and Spectroscopic Properties of Metal-Organic Frameworks