#8 Updated README.md
- Fixed spelling mistake
- Added API section
- Added flatten method