added a lot of comments to specify particulars of the key and board loading process.