#250 Add error checking and resending after bad tokens
#250 Add error checking and resending after bad tokens

change reconnection and chunk size