Code cleanup for dissertation publication.
Moving all library files.
Final code for dissertation.