Adds flag to get info about stack resources to stackInfo call.

This gives upstream libs a window through which to convey information about specific resources in the stack. Adds documentation for the stackInfo function as well