add newline to end of file
fix command of generate contents