Comments and description of functions added