Converted all the functions to use the new BadBlock Management (i think, may have missed a few...)
Changed some variable types aswell... (nothing terribly important)

Signed-off-by: Swizzy <Swizzy@xeupd.com>