hey @shan ! welcome to the forum and great first question. maybe this helps for the first part? the whole thread might be of interest for you.
for the second part maybe @lastmjs can help?