apply limit if smaller than count
add nickname function
make it possible to specify host in config file
pep8 and cleanup