Tidied up comments and added empty reset function