Adding some introductory sentences on README, plus minor code tidying up.