moved operation to constructor, refs #22
Merge pull request #55 from przytads/22

moved operation to constructor, fixes #22