Reformed title

Added a few more comments and changed the way title is formed.