Updated package.json to include deps and test file
Added options for appending text to the truncated output.