Photoionization and photoabsorption cross section calculations in molecules : CH4, NH3, H2O and HF