Rewriting send and get data.  Included new clear buffer function.  Added fix for line endings being parsed as respone types