Added function for specifying dofidmask when constructing the location array.
Fixed some indentation in skyline.