Project 4 almost working

Everything except sim_in works