new hosts.txt and updated examples and fixed app.h bug