added a console application to just help get the algorithm to work.
Started refactoring classes to different files.