Added some debug messages, more tests to the test GUI, and badblock/metatype checks

Signed-off-by: Swizzy <swizzy@hotmail.co.uk>