Refactor action classes, Action -> Sink, add comments.
Remove unnecessary const refs.
Improve doc.
Fix test.