Heirlooms are special pieces of armor that level up with your character, so they have stats that are always respectable for your character’s level (up to level 110). Heirlooms that fit the head, shoulder, chest, legs, and back armor slot offer an experience bonus. The total bonus is 45 percent if you have them all. It’s also possible to acquire a ring that adds another 5 percent, but you must win a fishing contest acquire it, and that can take some time.
The World of Warcraft API has a list of functions that you can interact with and to talk with WoW using Lua. These are your building blocks for manipulating WoW windows and chat boxes and so forth. Looking at these for the first time can be very daunting. But don't be discouraged. After getting more familiar with Lua the WoW API gets much easier, and the documentation gets much easier to read. Keep in mind there are many different ways to accomplish your goals, so when going though the API keep looking until you find a way that best suits what you need.