Can someone help me update these code into 1.0.1.

Generally if you can get it to compile it should work like it did before, so good luck.