Added configuration file and Lua support