Initial code for the archive tool added, and formatting cleaned up in the main library.