Moved the library out of the lib dir
Fixed a bunch of typos and added auto-creation of fqdns