First-Principles Studies Of Solar Cell Materials: Absorption, Carrier Lifetime And Non-Linear Optical Effect