Adds documentation for instantiation function