Update library template to work with publications

Fix #32