Merge pull request #31 from mikeplavsky/master

Added .gitattributes file for dealing with line endings
small refactoring