Computer simulations of photoionization