Add function warn_if_not_empty
Update doc
Rename file