added grunt functionality, continuous and single run modes