Add libraries and queries to offilne files.

Hey Thomas,

I have made the changes we discussed and added then to the offline files for you to review. Check it out.