See the API Style Guide for information on making a good Arduino-style API for your library. To use a library in a sketch, select it from Sketch > Import Library.
arduino.cc