setting filename properly
added comments to file_name method.
updated spacing styleguide
Merge pull request #4 from scienceexchange/actual-ternary-operator

Fixed default filename issue (serious this time).