added comment to _spyFunction
added comments for _spyFunction