Now able to actually process a department with the algorithm, and return sensible results
Now printing output in to a CSV format.