Fix operator overloading definition and add directory loading.