Converted to class-style. Now accepts custom list of abbreviations.

fixed test and expanded tabs to spaces in order to pass jshint.