code cleanup, minor bugfixes

removed unused functions
have defaultsettings NC working