Deleted old rewriter file, minor comments added to rewriter so I dont forget