added numpy-aware JSON encoder
added email logging #24
string lengths vary. hazard func after min #26