Implements the lua logic.
Fills in readme.