Implement nice client CLI
Avoid divbyzero errors in average