Removed unnecessary Path type, added yaml marshalling to config