CodeRewrite

Rewrote projects code.