clarified error message when using an undefined long name
added a simple example