added partial and compose functions
fixed renaming keys with the same from and to