Populated database and added comments to code