Added comments to describethe purpose of modules and functions.