Changed the writer to write to a file.

Changed the writer to print to adjacency out so the code is now ready for submission