Fixed issue with functions as keys
Updated read me and added example