plz help me Creating own library, how to import tv and air conditioner (irremot

i need Creating own library, how to import
my tv and air air conditioner with arduino

controling by mobile
i get hex code of remote
but i have problem with library

can any one help me
how can i get code and Creating own library