Cleaned up code with gofmt/lint. Added download resuming. Made downloads for subdirectories work correctly.