Clean more code, fix timeout detection, fix login checking
Update README