addLibrary method fixed to read jar file