Clean Up Flatten Function
Merge pull request #58 from tctcl/tjk_clean_up_flatten

Clean Up Flatten Function