UPdated main for explosion code.