Fixed makeRepo() and created makeLibrary()