Added log and exp functions and chaining test