Added comments

Added comments to various places.