Add logs directory

Related issue: #92
Use # instead of table.maxn

table.maxn was deprecated in Lua 5.2.