Changed rest() to maintain index associations to be in line with other methods.
Updated documentation.