fixed typos, added check for logs folder