Added timeout settings for serial communiction, initial connection and baudrate detection

Closes #126