Added handling for existing history
Added newlines to command responses