Added comments and headers to everything. all done.