Documentation corrections.
Added test against empty interface.
Minor refactoring.