updating grunt complexity and fixing some functions to adhere to this