added comments to functions. all comments start with TSC