created doc strings under the functions to further explain
what each function does.