add loging

Add NLog for logging and add basic logging for Preview model loading
function