refactor title stuff to title.c. add tutorial.c