Spectroscopy and photodissociative processes of diatomic molecules