modify add_map macro in order to remove the 'type' key in each object and update the documentation