Fixed template function and removed incorrect documentation