Move die to cli
Pass buffer from cli
Default callback
Fix for long files (Issue #2)