Overall comments added

Added overall comments to file and functions