Removed Entry.Complete. Manually set fragments.
Removed print statement, added error handling.
Newline at EOF
Added --output flag.