Added comments to lua script to increase user friendliness