Move NULL into libedgar
Clean up parameter checking