Added simple library example. Closes #42. Closes #43.