Finalised documentation i.e. comments and clean up.