fixed bug with anonymous functions, updated readme