Tidied and commented project code