modified density of states routines to return dos, lt and num_open
rather than assign them internal variables.