Basic insertion, execution implemented. Haven't done extensive testing, but it seems to work
Added result saving, finished simulate function. I think it's done...?