removed unused libraries and added FindBin