Minor fix to exception message and updated StackOperation docstring