Fix segfault
Add missing test-helper
Introduce interactive menu to cli app
Add comments