a bit of code cleanup/formating. pulling in libraries for offline use.