comments and minor changes. Added some stats to the output.