Add more file existance checks in the main command loop
Small improvements
Fix bug with eating the last symbol while reading block of data
Add additional assertion in cat