improve generation of rvl api code and example for loading mappings