add code for compiling notes/ section. also add code for creating a directory in the output folder if it doesnt already exist
Abstract folder conversion logic to a function in order to make compilation spec much more DRY