Document some of the public interface, and hide the functions that are no longer used outside of the emap module.