Bug Hunt

Fixing bugs, working towards portability and nation simulation.