Got to part 6.

Clean up and Initialisation function added.