Buffered writing to file and made some adjustments to logic errors in
the unseen download buttons related to the change in write speed