Adds changes suggested by Anders. Changes images to vector graphics. Updates flowchart.