Added passive mode to requests. Cleaned up sample code.