cleaned up and commented while i learn a new editor