Optoelectronic And Defect Properties In Earth Abundant Photovoltaic Materials: First-Principle Calculations