fixed some bugs (Now connects, and usually inputs, many errors reading the data though)