=minor param changes
=comments
=refactor ring test and start to add file output option