Simulations of structure formation and feedback at high redshift