Randomly cleaning files. This code have LOTS of bad stuffs in it, like customly defining bools as boolean and heavily using byte as a typedef unsigned char