changed the value of read timeout to 20 seconds from 5 seconds
 added separate header file and other files