rewrite of config generation, add percentage to pool and capacity checks, updated gems