basic saved history implementation
bug fixes and get command array right