update readme, add a check_null_ptr function to clear up clutter
update readme, add a check_null_ptr function to clear up clutter