Added .flatten method to Operation.

Fixes #223
Removed comment
Merge pull request #645 from lossyrob/flatten

Added .flatten method to Operation.