Fixed bug with gencall, changed arg order func decl and added set:ing variables