Refactored console helper and added registrar for commands