tons of minor edits
added analysis tools