Added useful methods. Optimized grunt file