minor template and doc fixes