First optics and beam dynamics studies on the MAX IV 3 GeV storage ring