Logger rewrite and automated library downloading