Update compression and Clear legacy code

1. Finished compress method. Need to be tested inside the game.
2. Cleared Legacy code. Remove API version.