Building And Training Normalizing Flow Models