add Docstring + Comment

describe objective of each function