refactor for dist and add grunt/make files