Removed and refactored old code
Added MIT license
All logic should use pre-increment/pre-decrement format