fixed some syntax. but formatting for function issue got worse
Used slicing to capture the section wanted
Merge pull request #9 from JoelMon/master

Slicing