finished basic level of tests including all the steps and fixed bugs with expressions. also refactored the debug outputting.