Fixed bug in codegen
Added example on how to use generated functions in NLP solution