add setup script
break long lines
fix logging
port tests