prepare output model source file, and fix variable
Signed-off-by: chatii.ub-dev <contact+ub-dev@chatii.net>