Added printTitle & tidied up