Add license files, update readme and update API to use template rendering