Streamlined read_language function to make it simpler and easier to
read.

Added a method to Tree class to find leaves.