added some docs; prepared Lua header; fixed some descriptions