Documentation update and added some type checks to summarize.sh