Log spec work

@imlucas 

1. created a file for the setting up of the regret module into regretSetup.js
2. styling for index.js, added more indentation and line breaks
3. added the spec