moved stuff from doc.h to latl.h
moved to latl.h