Shader for procedural material - Substance

I looking for an example of a custom shader that I can use with procedural materials. The built in unity ones worked fine originally, but as I use them more, I want more control. And the build in shaders all properties that conflict with the procedural outputs. Starting point or reference? Thanks.

Here are the docs for surface shaders: Unity - Manual: Writing Surface Shaders
From my experience, the source code of built-in shaders is immensely useful: http://unity3d.com/unity/download/archive (rightmost column)