minimized the code
Adding in yrdif function
updated documentation
added example