Started refactoring and adding automated testing

 - Fixed a bug with removing the last adjacent node of a graph/node
 - Started to implement tests using QuickCheck
 - Using test-framework as general test framework