added ability to sign single file or all files in directory