fixed bug in get_chunks
Merge pull request #5 from esheldon/master

fixed bug in get_chunks