Basic file manipulation from CLI. Clear up some of code.