improvements on documentation, change for test target not be required and remove an unnecessary checking if the file was written