rev_1

reworked compute engine (simplified compute algorithm)

wrote test class

other misc improvements
Revert "rev_1"

This reverts commit 4593882e153a3b8150cf9f6fc4c6b01918e7af49.