Added NB configuration, formatted code