Heterojunction and Nanostructured Photovoltaic Device: Theory and Experiment