Change to Modified LZ78, modify test code for it and added comments