multiple pull requests to version 0.4.2

includes ckreutzer:master pull requests #2,#4,#5,#6,#7,#8;
uses logging for output
timeouts in requests