Finish environment implementation
Revert "Finish environment implementation"

This reverts commit d065944aaf1e5caa5ef27d34a7fcbdf8c067ef2c.
Fix parsing bug
Revert "Fix parsing bug"

This reverts commit 0d95bfe293c3e481416636989c7647faba523665.
Being lambda implementation, partially applied functions nonworking