Improving gulp file and also doing some algo review