Added file truncation before write in saveFile
Fixed line removal in stack trace highlight, closes #15