Added commandline functions and file operations