beginning to add more comments to frontend code