Made Code to compile, some comments added