small code review
removed mkdir for logs
updated countCharLength and removed deprecated code