Fixed a bug in defense.d. Fixed some bugs with monte carlo bounds. Sub-optimal statistics behaviour remains.