adds Reader monad
Merge pull request #365 from donnut/master

Reader monad