Re: Is there a Lua documentation?
viewforum.php?f=73 is where you want to be for this discussion and to see what has already been figured out.
http://www.datarealms.com/wiki/index.php/Modding contains some links at the bottom to information dumps.
Full official documentation is coming soon.
Take this advice, it's good stuff.