Added documentation to Lua code.
Fixed small bug (IsNotHCD option).

Signed-off-by: Konctantin <gawrilyako@gmail.com>