Fixed some bugs that caused erratic behavior; Found Connected Components