all the crap from main.c
purged crap to notes.c