Drastically simplified compile code and fixed bug. added angular based test for side by side comparison.