Setup winston logging level to 'error', Closes #2

Also formatted some code.