Tightened up parseTitle and added commented