Fix timeout handling, add requirments file