code cleanup -- remove warnings
add hh_preferences.c