Created comment function, variable initialization

Created comment for function and variable initialization