Add newline to each file
Add logout function