Pentacene devices: Molecular structure, charge transport and photo response