Update codebase to nomlib's latest API on dev branch