Code Tidy up Completed comments added to functions