Add an example showing how to remove an element node by id
Fix argument checking in examples/remove_by_id.lua