Various refactorings regarding PR #881.
Fix wrong raises docstring.
Deleted unused self._size.
Merge pull request #886 from akbargumbira/fix-864-comments

Various refactorings regarding PR 881 comments