chore::Adds set instance function in Lib

fixes #44