Some performance improvements and minor bug fixes
Added test suite for Execution module