add .flatten()
Merge pull request #19 from nickb1080/method/flatten

add .flatten()