added comments to character.lua