Fixed history saving. Now every command is saved to history. Added catch
in Cat when with no arguments.