Add flatten method
update docblock
Merge pull request #20 from asika32764/master

Add flatten() method