Added support for simple scope objects
Simplified eval and some debug functions
Fixed compilation warnings