This commmit make a big cleaning inside IS binary, moving all code insides functions and removing unecessary use of variables