Custom Libraries

I wanted to know how to make my own library of functions to make my code cleaner, and how to include that library in my main code. Thanks!