little work on doc strings & tweaked output file formatting