added newline to pid file and updated docs some