Added a bunch of initialization functions

Also fixed a bug with sim.cpp's new map initialization