Added topology pretty printing
Removed a few "unsigned int" comparuson warnings with g++
Splitted bug test_main function