#4, #5 added flatten and extended traverse

- Resolves #4 - extended traverse
- Resolves #5 - added flatten method