* Declare global variables globally * Group functions related to note searching together * Add colour to the "Can't find" error * Add more comments to explain what different blocks of code are doing