Added setRoot()
Made Properties test remove created file afterwards
Fixed properties class appending \n on write