Initialise variables and update documentation