rebuilt documentation, and added tests for lambda