Config based unit spawning added. Misc. fixes included