Move settings to other file. Add bgpq3 support. Fix some small errors.