throw error when an array is empty
simplify
whitespace
add keyword to package.json
package.json: change indent to 2 spaces
update dependencies
test/criterion.coffee: change indent to 2 spaces
src/util.coffee: indent 2 spaces and add some function
better segment heading comments
move check for empty array param to construction and test it