Read header when connect(). Better coding practices. - v. 0.60.

Read header when connect(). Better coding practices. - v. 0.60.