Hazard Modeller's Toolkit prototype code