Moved log and fixed typos