Added benchmark scripts, fixed generate script an benchmark code