Fixed config errors
Fixed out directory bug.