Use configurable file paths for all libraries

and fix the readme and stuff.