titleize function added AND some formatting stuff